package com.example.back.service;

import com.example.back.model.User;

import java.util.List;

public interface UserService {
    //查询所有用户
    List<User> findAllUser();
    //模糊查询所有用户
    List<User> findByInformation(String information);
    //查询对应用户名的用户
    User findByAccount(String account);
    //查询对应手机的用户
    User findByPhone(String phone);
    //添加用户
    void addUser(String account, String username, String password, String phone);
    //更新用户信息
    String findAccountByPhone(int id);
    Boolean updateUsername(String account, String username);
    Boolean updateSex(String account, int sex);
    Boolean updatePhone(String account, String phone);
    Boolean updateEmail(String account, String email);
    Boolean updatePassword(String account, String password);
    List<User> userSearch(String userInfo);
    Boolean updateUser(int id, String password, String username, String sex, String phone, String email);
    void insertUser(String account, String password, String username, String sex, String phone, String email);
    Boolean updatePhoto(String account, String photo);
    Boolean deleteUser(int id);
    String findPhotoByID(int id);
}
